a/* =========================================
   Variables (เ�?�?เ�?ณเ�?�?�เ�?�?เ�?�?เ�?�?เ�?�?เ�?ณเ�?�?เ�?�?เ�?ฑเ�?�?เ�?�?เ�?ต)
   ========================================= */
:root {
  --primary-orange: #fc5b08;
  --dark-text: #333333;
  --light-text: #666666;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
}

/* =========================================
   Glass Panel Utility (เ�?�?เ�?ทเ�?�?เ�?�?เ�?�?เ�?ฅเ�?ฑเ�?�?เ�?�?เ�?�?เ�?�?เ�?�?เ�?�?)
   ========================================= */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  box-shadow: 0 10px 30px -5px rgba(252, 91, 8, 0.08);
  border-radius: 1rem;
}

/* =========================================
   Header Card Styles
   ========================================= */
.header-card {
  padding: 1.15rem 1.5rem;
  height: 6rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Title Group (Left side) */
.header-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 0;
  min-width: 0;
}

.navinfo-segmented-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.32rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  flex: 0 0 auto;
  margin: 0 auto;
}

.navinfo-segment-btn {
  min-width: 110px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.95rem;
  border: none;
  border-radius: 0.9rem;
  background: transparent;
  color: #8a8a8a;
  font-family: "Anuphan", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.navinfo-segment-btn:hover {
  color: var(--dark-text);
  background: rgba(252, 91, 8, 0.08);
}

.navinfo-segment-btn.active {
  background: linear-gradient(180deg, #fc6a1b 0%, #fc5b08 100%);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(252, 91, 8, 0.22);
}

.navinfo-segment-btn i,
.navinfo-segment-btn svg,
.navinfo-segment-btn [data-lucide] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.navinfo-segment-btn svg {
  stroke-width: 2;
}

#navinfo-placeholder .glass-panel,
#navinfo-placeholder .header-card,
#navinfo-placeholder .management-header,
#navinfo-placeholder .navinfo-segmented-switch {
  border: none !important;
  border-color: transparent !important;
}

.header-icon-box {
  background: linear-gradient(to bottom right, var(--primary-orange), #ea580c);
  color: white;
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.2);
}

.header-icon-box span {
  font-size: 1.875rem;
}

.header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-text);
  margin: 0;
}

.header-text p {
  color: var(--light-text);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

/* Action Group (Right side) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Date Display */
.date-display {
  text-align: right;
}
.date-display .date {
  font-size: 0.875rem;
  font-weight: 700;
}
.date-display .day {
  font-size: 0.75rem;
  color: var(--primary-orange);
  font-weight: 500;
}

/* Vertical Divider */
.divider-vertical {
  height: 2rem;
  width: 1px;
  background-color: rgba(209, 213, 219, 0.5);
}

/* Notification Button */
.notification-btn {
  position: relative;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.3s;
}
.notification-btn:hover {
  color: var(--primary-orange);
}
.notification-btn span {
  font-size: 1.5rem;
}
.notification-btn .badge {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  width: 0.625rem;
  height: 0.625rem;
  background-color: #ef4444;
  border: 2px solid white;
  border-radius: 50%;
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.75rem;
  transition: background 0.3s;
  flex: 0 0 auto;
}
.user-profile:hover {
  background-color: #fff7ed;
}
.user-info {
  text-align: right;
}
.user-info .name {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}
.user-info .role {
  display: block;
  font-size: 0.75rem;
  color: var(--light-text);
}
.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: none !important;
  box-shadow: none !important;
}

#navinfo-placeholder .user-profile,
#navinfo-placeholder .user-avatar,
#navinfo-placeholder .user-avatar img,
#navinfo-placeholder .avatar-large,
#navinfo-placeholder .avatar-large img {
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#navinfo-placeholder .user-avatar {
  background: transparent !important;
  padding: 0 !important;
}

@media (max-width: 1280px) {
  .navinfo-segment-btn {
    min-width: 98px;
    height: 40px;
    font-size: 0.875rem;
    padding: 0 0.85rem;
  }
}

/* Secondary navigation column styling for the shared back-office shell. */
@media (min-width: 1280px) {
  /* Only apply column layout when navinfo is inside sidebar context (not content-area) */
  html
    body.app-body
    :not(.content-area)
    > #navinfo-placeholder
    :is(.glass-panel, .header-card, .management-header) {
    height: auto !important;
    min-height: 0 !important;
    padding: 14px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid rgba(70, 69, 69, 0.08) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* content-area navinfo: always row on desktop */
  html
    body.app-body
    .content-area
    > #navinfo-placeholder
    :is(.glass-panel, .header-card, .management-header) {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html body.app-body .content-area > #navinfo-placeholder .header-content {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
  }

  html body.app-body .content-area > #navinfo-placeholder .header-title-group {
    align-items: center !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  html
    body.app-body
    .content-area
    > #navinfo-placeholder
    .navinfo-segmented-switch {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 0.32rem !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 1.15rem !important;
    gap: 0.25rem !important;
  }

  html body.app-body .content-area > #navinfo-placeholder .navinfo-segment-btn {
    width: auto !important;
    min-width: max-content !important;
    height: 42px !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
  }

  html
    body.app-body
    .content-area
    > #navinfo-placeholder
    :is(.user-profile, .date-display, .divider-vertical, .notification-btn) {
    align-self: center !important;
  }

  html body.app-body #navinfo-placeholder .header-content {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 14px !important;
  }

  html body.app-body #navinfo-placeholder .header-title-group {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  html body.app-body #navinfo-placeholder .header-icon-box {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body.app-body #navinfo-placeholder .header-icon-box span {
    font-size: 21px !important;
  }

  html body.app-body #navinfo-placeholder .header-text h1 {
    font-size: 1.12rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
  }

  html body.app-body #navinfo-placeholder .header-text p {
    margin-top: 5px !important;
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    color: #737780 !important;
  }

  html body.app-body #navinfo-placeholder .header-actions {
    width: 100% !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  html body.app-body #navinfo-placeholder .navinfo-segmented-switch {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  html body.app-body #navinfo-placeholder .navinfo-segment-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #737780 !important;
    box-shadow: none !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
  }

  html body.app-body #navinfo-placeholder .navinfo-segment-btn:hover {
    background: rgba(252, 91, 8, 0.06) !important;
    color: var(--primary-orange, #fc5b08) !important;
  }

  html body.app-body #navinfo-placeholder .navinfo-segment-btn.active {
    background: rgba(252, 91, 8, 0.08) !important;
    border-color: rgba(252, 91, 8, 0.16) !important;
    color: var(--primary-orange, #fc5b08) !important;
  }

  html
    body.app-body
    #navinfo-placeholder
    :is(.user-profile, .date-display, .divider-vertical, .notification-btn) {
    align-self: flex-start !important;
  }
}

/* Page-main navinfo placement. Applies only after navinfo is moved into the main column. */
html body.app-body .main-column > #navinfo-placeholder,
html body.app-body .main-column > #navinfo-placeholder.page-navinfo {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  grid-column: auto !important;
  grid-row: auto !important;
  padding: 18px 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(70, 69, 69, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

html
  body.app-body
  .main-column
  > #navinfo-placeholder
  :is(.glass-panel, .header-card, .management-header) {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html
  body.app-body
  .main-column
  > #navinfo-placeholder
  :is(
    .header-content,
    .header-title-group,
    .header-actions,
    .user-profile,
    .user-info,
    .navbar-right-user,
    .project-info
  ) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html
  body.app-body
  .main-column
  > #navinfo-placeholder
  :is(.user-profile, .navbar-right-user) {
  padding: 0 !important;
}

html body.app-body .main-column > #navinfo-placeholder .header-content {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

html body.app-body .main-column > #navinfo-placeholder .header-title-group {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  align-items: center !important;
}

html body.app-body .main-column > #navinfo-placeholder .header-actions {
  width: auto !important;
  flex: 0 1 auto !important;
  align-items: center !important;
}

html
  body.app-body
  .main-column
  > #navinfo-placeholder
  .navinfo-segmented-switch {
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

html body.app-body .main-column > #navinfo-placeholder .navinfo-segment-btn {
  width: auto !important;
  min-width: max-content !important;
  flex: 0 0 auto !important;
  justify-content: center !important;
}

html
  body.app-body
  .main-column
  > #navinfo-placeholder
  :is(.user-profile, .date-display, .divider-vertical, .notification-btn) {
  align-self: center !important;
}

@media (max-width: 768px) {
  html body.app-body .main-column > #navinfo-placeholder .header-content {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html body.app-body .main-column > #navinfo-placeholder .header-actions,
  html
    body.app-body
    .main-column
    > #navinfo-placeholder
    .navinfo-segmented-switch {
    width: 100% !important;
  }
}

/* Transparent navinfo final lock: the shell gradient carries navinfo, no nested card frame. */
html body.app-body .main-column > #navinfo-placeholder,
html body.app-body .main-column > #navinfo-placeholder.page-navinfo {
  margin: 0 0 16px !important;
  padding: 0 2px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html
  body.app-body
  .main-column
  > #navinfo-placeholder
  :is(
    .navinfo-shell,
    .management-header,
    .header-content,
    .header-title-group,
    .header-actions,
    .user-profile,
    .user-info,
    .navbar-right-user,
    .project-info
  ) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Compact navinfo lock: keep the intro block only as wide as its content. */
html body.app-body .main-column > #navinfo-placeholder,
html body.app-body .main-column > #navinfo-placeholder.page-navinfo {
  align-self: flex-start !important;
  width: auto !important;
  max-width: min(100%, 980px) !important;
  padding: 0 !important;
}

html body.app-body .main-column > #navinfo-placeholder .header-content {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  padding-inline: 0 24px !important;
}

html body.app-body .main-column > #navinfo-placeholder .header-actions {
  width: auto !important;
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}

/* Header user area final lock: user controls stay at the page right edge with safe padding. */
html body.app-body .main-column > #navinfo-placeholder,
html body.app-body .main-column > #navinfo-placeholder.page-navinfo {
  width: 100% !important;
  max-width: none !important;
}

html body.app-body .main-column > #navinfo-placeholder .header-content {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding-inline: 0 24px !important;
}

html body.app-body .main-column > #navinfo-placeholder .header-title-group {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

html body.app-body .main-column > #navinfo-placeholder .header-actions {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

html
  body.app-body
  .main-column
  > #navinfo-placeholder
  :is(.user-profile, .navbar-right-user) {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

html
  body.app-body
  .main-column
  > #navinfo-placeholder
  .header-content:has(.header-actions)
  :is(.user-profile, .navbar-right-user) {
  margin-left: 0 !important;
}

html
  body.app-body
  .main-column
  > #navinfo-placeholder
  :is(.user-info, .header-user-meta) {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  text-align: right !important;
}

/* Header notification hit-area lock: scoped to the shared navinfo header only. */
html body.app-body #navinfo-placeholder #notification-wrapper,
html body.app-body #navinfo-placeholder .notification-container,
html body.app-body #navinfo-placeholder #notificationButton {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
}

html body.app-body #navinfo-placeholder #notificationButton {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
}

html
  body.app-body
  #navinfo-placeholder
  #notificationButton
  :is(i, svg, span.material-icons-round, .material-symbols-outlined) {
  width: 19px !important;
  height: 19px !important;
  font-size: 19px !important;
  line-height: 1 !important;
}

html body.app-body #navinfo-placeholder #notificationButton .badge-dot {
  top: 2px !important;
  right: 2px !important;
}

/* Shared navinfo standard: navinfo sits above and outside the white main content frame. */
html body.app-body .content-area > #navinfo-placeholder,
html body.app-body .content-area > #navinfo-placeholder.page-navinfo {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 24px 14px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html
  body.app-body
  .content-area
  > #navinfo-placeholder
  :is(
    .management-header,
    .navinfo-shell,
    .header-content,
    .header-title-group,
    .header-actions,
    .user-profile,
    .user-info,
    .project-info
  ) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html
  body.app-body
  .content-area
  > #navinfo-placeholder
  :is(.management-header, .navinfo-shell) {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

html body.app-body .content-area > #navinfo-placeholder .header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: none !important;
  gap: 16px !important;
  padding: 0 !important;
}

html body.app-body .content-area > #navinfo-placeholder .header-title-group {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  align-items: center !important;
}

html
  body.app-body
  .content-area
  > #navinfo-placeholder
  :is(.user-profile, .navbar-right-user) {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

html
  body.app-body
  .content-area
  > #navinfo-placeholder
  :is(.user-info, .header-user-meta) {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  text-align: right !important;
}

html
  body.app-body
  .content-area
  > #navinfo-placeholder
  :is(.user-avatar, .avatar-large) {
  flex: 0 0 auto !important;
  margin-right: 0 !important;
}

html body.app-body .content-area > #navinfo-placeholder .user-avatar img {
  display: block !important;
}

@media (max-width: 768px) {
  html body.app-body .content-area > #navinfo-placeholder,
  html body.app-body .content-area > #navinfo-placeholder.page-navinfo {
    /* padding-right removed */
    padding-bottom: 12px !important;
  }

  html body.app-body .content-area > #navinfo-placeholder .header-content {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  html
    body.app-body
    .content-area
    > #navinfo-placeholder
    :is(.user-profile, .navbar-right-user) {
    width: 100% !important;
  }
}

/* =========================================
   Navinfo Layout: single-row, transparent
   Matches standard across all pages
   ========================================= */

/* 1. navinfo wrapper: transparent, no card */
html body.app-body .content-area > #navinfo-placeholder,
html body.app-body .content-area > #navinfo-placeholder.page-navinfo {
  order: 0 !important;
  display: block !important;
  position: relative !important;
  z-index: 40 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 14px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* 2. Nested elements: remove all card chrome */
html
  body.app-body
  .content-area
  > #navinfo-placeholder
  :is(.management-header, .navinfo-shell, .glass-panel, .header-card) {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 3. header-content: single flex row */
html body.app-body .content-area > #navinfo-placeholder .header-content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 16px !important;
  padding: 0 !important;
  background: transparent !important;
}

/* 4. Title group: left, auto width */
html body.app-body .content-area > #navinfo-placeholder .header-title-group,
html
  body.app-body
  .content-area
  > #navinfo-placeholder
  #dynamic-header-container {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  background: transparent !important;
}

/* 5. Segmented switch: center auto */
html
  body.app-body
  .content-area
  > #navinfo-placeholder
  .navinfo-segmented-switch {
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
}

html body.app-body .content-area > #navinfo-placeholder .navinfo-segment-btn {
  width: auto !important;
  min-width: max-content !important;
  flex: 0 0 auto !important;
  justify-content: center !important;
}

/* 6. User area: right */
html
  body.app-body
  .content-area
  > #navinfo-placeholder
  :is(.header-actions, .user-profile, .navbar-right-user) {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
}

/* 7. Avatar: always visible */
html
  body.app-body
  .content-area
  > #navinfo-placeholder
  :is(.user-avatar, #userAvatar, .avatar-large) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex: 0 0 40px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html
  body.app-body
  .content-area
  > #navinfo-placeholder
  :is(.user-avatar img, #userAvatar img, .avatar-large img) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  visibility: visible !important;
}

/* 8. content-area: column flex (navinfo first, then white card) */
html body.app-body .content-area {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 0 !important;
}

/* 9. Main Content Card (White Box) */
html
  body.app-body
  .content-area
  > :is(
    .dashboard-container,
    #defaultDashboardView,
    #synto-main-content-panel
  ) {
  order: 2 !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(70, 69, 69, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02) !important;
  margin: 0 20px 24px 20px !important; /* Align with navinfo */
  padding: 20px !important;
  width: auto !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Remove extra padding from inner columns if they exist to prevent double padding */
html
  body.app-body
  .content-area
  > :is(.dashboard-container, #defaultDashboardView)
  > .content-row,
html
  body.app-body
  .content-area
  > :is(.dashboard-container, #defaultDashboardView)
  > .content-row
  > .main-column {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 10. Navinfo Alignment */
html body.app-body .content-area > #navinfo-placeholder,
html body.app-body .content-area > #navinfo-placeholder.page-navinfo {
  order: 0 !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important; /* Removed margin */
  padding: 16px 20px 16px 20px !important; /* Use padding for browser edge spacing */
  width: 100% !important; /* Span full width */
  box-sizing: border-box !important;
}

/* 11. Global Notification Visibility */
html
  body.app-body
  #navinfo-placeholder
  :is(.notification-btn, #notification-wrapper) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* 9. Mobile: wrap header-content */
@media (max-width: 768px) {
  html body.app-body .content-area > #navinfo-placeholder .header-content {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  html
    body.app-body
    .content-area
    > #navinfo-placeholder
    .navinfo-segmented-switch {
    order: 3 !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-x: auto !important;
  }

  html
    body.app-body
    .content-area
    > :is(
      .dashboard-container,
      #defaultDashboardView,
      #synto-main-content-panel
    ) {
    margin: 0 12px 16px 12px !important;
    padding: 16px !important;
  }
  html body.app-body .content-area > #navinfo-placeholder,
  html body.app-body .content-area > #navinfo-placeholder.page-navinfo {
    margin: 0 !important;
    padding: 12px 12px 12px 12px !important;
  }
}

/* OVERRIDE: FORCE AVATAR VISIBILITY */
html
  body.app-body
  #navinfo-placeholder
  :is(.user-avatar, #userAvatar, .avatar-large) {
  visibility: visible !important;
  opacity: 1 !important;
  display: inline-flex !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.user-avatar img, #userAvatar img, .avatar-large img) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Source-of-truth shell: transparent navinfo, then one white main content card. */
html body.app-body {
  --synto-page-edge-gap: clamp(12px, 1.35vw, 20px);
  --synto-main-card-padding: clamp(16px, 1.45vw, 22px);
  --synto-shell-main-radius: 18px;
  --synto-shell-main-shadow: 0 12px 28px -24px rgba(51, 51, 51, 0.28);
}

html body.app-body,
html body.app-body .main-layout,
html body.app-body .content-area,
html body.app-body :is(.dashboard-container, .content-row, .main-column) {
  max-width: none !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

html body.app-body .content-area {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding-right: var(--synto-page-edge-gap) !important;
  box-sizing: border-box !important;
}

html body.app-body .content-area > #navinfo-placeholder,
html body.app-body .content-area > #navinfo-placeholder.page-navinfo {
  order: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.management-header, .navinfo-shell, .glass-panel, .header-card) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body.app-body #navinfo-placeholder .header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 16px !important;
  padding: 0 !important;
}

html body.app-body #navinfo-placeholder :is(.user-profile, .navbar-right-user) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body.app-body #navinfo-placeholder #notification-wrapper,
html body.app-body #navinfo-placeholder .notification-container,
html body.app-body #navinfo-placeholder #notificationButton,
html body.app-body #navinfo-placeholder .user-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
}

html body.app-body #navinfo-placeholder .user-avatar {
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #fc5b08 !important;
}

html body.app-body #navinfo-placeholder .user-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

html body.app-body .main-column {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0 !important;
}

html body.app-body #synto-main-content-panel {
  order: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: var(--synto-main-card-padding) !important;
  background: var(--synto-shell-surface, #ffffff) !important;
  border: 1px solid var(--synto-shell-border, rgba(70, 69, 69, 0.08)) !important;
  border-radius: var(--synto-shell-main-radius) !important;
  box-shadow: var(--synto-shell-main-shadow) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(.toolbar-section.page-command-bar, .page-command-bar) {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  z-index: auto !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(.toolbar-section.page-command-bar, .page-command-bar)
  > .toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
}

html
  body.app-body
  #synto-main-content-panel
  :is(#global-command-toolbar-placeholder, .page-search) {
  flex: 1 1 auto !important;
  min-width: 220px !important;
}

html
  body.app-body
  #synto-main-content-panel
  :is(#global-quick-menu-placeholder, .global-btn-container) {
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(#synto-dashboard-view-host, #synto-list-view-host) {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
}

html body.app-body #synto-main-content-panel > #synto-list-view-host[hidden] {
  display: none !important;
}

html
  body.app-body
  #synto-main-content-panel
  > #synto-list-view-host:not([hidden]) {
  display: block !important;
}

@media (max-width: 900px) {
  html body.app-body .content-area {
    padding-right: 0 !important;
  }

  html
    body.app-body
    #synto-main-content-panel
    > :is(.toolbar-section.page-command-bar, .page-command-bar)
    > .toolbar {
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  html
    body.app-body
    #synto-main-content-panel
    :is(#global-command-toolbar-placeholder, .page-search),
  html
    body.app-body
    #synto-main-content-panel
    :is(#global-quick-menu-placeholder, .global-btn-container) {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }
}

/* Right edge alignment lock: navinfo shares content width, main card reaches page edge. */
html body.app-body {
  --synto-page-edge-gap: clamp(12px, 1.35vw, 20px);
  --synto-main-card-padding: clamp(16px, 1.45vw, 22px);
  --synto-shell-main-radius: 18px;
}

html body.app-body,
html body.app-body .main-layout,
html body.app-body .page-wrapper,
html body.app-body .content-area {
  overflow-x: hidden !important;
}

html body.app-body .content-area {
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

html body.app-body .content-area > #navinfo-placeholder {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 var(--synto-page-edge-gap) 14px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.app-body .content-area > #navinfo-placeholder .header-content,
html body.app-body .content-area > #navinfo-placeholder .navinfo-content,
html body.app-body .content-area > #navinfo-placeholder .navinfo-inner {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  position: static !important;
  right: auto !important;
  max-width: 100% !important;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.user-info, .header-user-meta, .user-details) {
  min-width: 0 !important;
  max-width: min(46vw, 360px) !important;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.user-avatar, .avatar, .avatar-wrapper) {
  flex: 0 0 auto !important;
}

html body.app-body #synto-main-content-panel {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  border-right: 0 !important;
  border-radius: var(--synto-shell-main-radius) 0 0
    var(--synto-shell-main-radius) !important;
  padding: var(--synto-main-card-padding) !important;
  overflow: visible !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(
    .toolbar-section,
    .global-command-toolbar,
    .dashboard-toolbar,
    .content-toolbar
  ) {
  margin-top: 0 !important;
}

html
  body.app-body:not(.synto-right-sidebar-expanded)
  :is(
    .right-sidebar,
    .side-panel-right,
    .content-right-panel,
    .dashboard-right-rail
  ) {
  width: 0 !important;
  min-width: 0 !important;
  flex-basis: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  html body.app-body {
    --synto-page-edge-gap: clamp(12px, 3vw, 16px);
    --synto-main-card-padding: clamp(14px, 4vw, 18px);
    --synto-shell-main-radius: 14px;
  }

  html body.app-body .content-area {
    padding-right: 0 !important;
  }

  html body.app-body .content-area > #navinfo-placeholder {
    padding-right: var(--synto-page-edge-gap) !important;
  }
}

/* Final navinfo parity lock: navinfo content stays inset, main card keeps the right edge. */
html body.app-body .main-layout {
  gap: 0 !important;
}

html body.app-body .main-layout > .content-area,
html body.app-body .content-area {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

html body.app-body #navinfo-placeholder.page-navinfo,
html body.app-body .content-area #navinfo-placeholder {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 var(--synto-page-edge-gap, clamp(12px, 1.35vw, 20px)) 14px 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.header-content, .navinfo-content, .navinfo-inner),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.header-content, .navinfo-content, .navinfo-inner) {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.user-profile, .navbar-right-user, .header-user, .user-area),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  position: static !important;
  right: auto !important;
  max-width: 100% !important;
}

html body.app-body #synto-main-content-panel {
  margin-right: 0 !important;
  border-right: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

html
  body.app-body:not(.synto-right-sidebar-expanded)
  .main-layout
  > .right-sidebar {
  display: block !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Navinfo browser-edge breathing room lock. */
html body.app-body {
  --synto-navinfo-browser-gap: clamp(18px, 2vw, 28px);
}

html
  body.app-body
  :is(.content-area, .main-column, .dashboard-container)
  > #navinfo-placeholder,
html body.app-body #navinfo-placeholder.page-navinfo {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: var(--synto-navinfo-browser-gap) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.management-header, .navinfo-shell, .header-content),
html
  body.app-body
  :is(.content-area, .main-column, .dashboard-container)
  > #navinfo-placeholder
  :is(.management-header, .navinfo-shell, .header-content) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.user-profile, .navbar-right-user, .header-user, .user-area),
html
  body.app-body
  :is(.content-area, .main-column, .dashboard-container)
  > #navinfo-placeholder
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  position: static !important;
  right: auto !important;
  transform: none !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.user-avatar, .avatar-large, #userAvatar),
html
  body.app-body
  :is(.content-area, .main-column, .dashboard-container)
  > #navinfo-placeholder
  :is(.user-avatar, .avatar-large, #userAvatar) {
  margin-right: 0 !important;
  flex: 0 0 auto !important;
}

@media (max-width: 768px) {
  html body.app-body {
    --synto-navinfo-browser-gap: clamp(16px, 4vw, 22px);
  }

  html body.app-body #navinfo-placeholder.page-navinfo,
  html
    body.app-body
    :is(.content-area, .main-column, .dashboard-container)
    > #navinfo-placeholder {
    padding-right: var(--synto-navinfo-browser-gap) !important;
  }
}

/* Main content right bleed lock: white panel extends past the browser edge. */
html body.app-body {
  --synto-main-card-right-bleed: clamp(18px, 2vw, 28px);
}

html body.app-body,
html body.app-body .main-layout {
  overflow-x: hidden !important;
}

html body.app-body .content-area,
html body.app-body .main-column,
html body.app-body :is(.dashboard-container, #defaultDashboardView) {
  overflow-x: visible !important;
}

html body.app-body #synto-main-content-panel {
  width: calc(100% + var(--synto-main-card-right-bleed)) !important;
  max-width: none !important;
  margin-right: calc(var(--synto-main-card-right-bleed) * -1) !important;
  border-right: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  padding-right: calc(
    var(--synto-main-card-padding, clamp(16px, 1.45vw, 22px)) +
      var(--synto-main-card-right-bleed)
  ) !important;
  overflow: visible !important;
}

html
  body.app-body
  #synto-main-content-panel
  > :is(
    .toolbar-section,
    .global-command-toolbar,
    .dashboard-toolbar,
    .content-toolbar,
    #synto-dashboard-view-host,
    #synto-list-view-host
  ) {
  max-width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 768px) {
  html body.app-body {
    --synto-main-card-right-bleed: clamp(16px, 4vw, 24px);
  }
}

/* Parent-shell right edge lock: no negative margin, no page-shell gap. */
html body.app-body {
  --synto-main-card-right-bleed: 0px;
}

html body.app-body,
html body.app-body .main-layout {
  overflow-x: hidden !important;
}

html body.app-body .main-layout {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 0 !important;
  column-gap: 0 !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

html body.app-body .main-layout > .content-area,
html body.app-body .content-area {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  justify-self: stretch !important;
  overflow-x: hidden !important;
}

html
  body.app-body
  .content-area
  :is(.dashboard-container, #defaultDashboardView),
html body.app-body .content-area .main-column {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  justify-content: flex-start !important;
  overflow-x: hidden !important;
}

html body.app-body #synto-main-content-panel {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  padding-right: var(
    --synto-main-card-padding,
    clamp(16px, 1.45vw, 22px)
  ) !important;
  border-right: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  transform: none !important;
  overflow: visible !important;
}

html
  body.app-body:not(.synto-right-sidebar-expanded)
  .main-layout
  > .right-sidebar,
html
  body.app-body:not(.synto-right-sidebar-expanded)
  :is(
    .right-sidebar,
    .side-panel-right,
    .content-right-panel,
    .dashboard-right-rail
  ) {
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

html body.app-body #navinfo-placeholder.page-navinfo,
html body.app-body .content-area #navinfo-placeholder {
  padding-right: var(
    --synto-navinfo-browser-gap,
    clamp(18px, 2vw, 28px)
  ) !important;
}

/* Navinfo contained-content lock: title, description, and user area stay inside the content edge. */
html body.app-body #navinfo-placeholder.page-navinfo,
html body.app-body .content-area #navinfo-placeholder {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: var(
    --synto-navinfo-browser-gap,
    clamp(18px, 2vw, 28px)
  ) !important;
  overflow-x: hidden !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.management-header, .navinfo-shell, .header-content),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.management-header, .navinfo-shell, .header-content) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  ),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  ) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  )
  :is(h1, h2, h3, p, span, div),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  )
  :is(h1, h2, h3, p, span, div) {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(
    .page-description,
    .header-description,
    .project-description,
    .navinfo-description,
    p
  ),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(
    .page-description,
    .header-description,
    .project-description,
    .navinfo-description,
    p
  ) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.user-profile, .navbar-right-user, .header-user, .user-area),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: min(48vw, 420px) !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  position: static !important;
  right: auto !important;
  transform: none !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.user-info, .header-user-meta, .user-details),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.user-info, .header-user-meta, .user-details) {
  min-width: 0 !important;
  max-width: 100% !important;
}

html
  body.app-body
  #navinfo-placeholder.page-navinfo
  :is(.name, .user-name, .role, .user-role),
html
  body.app-body
  .content-area
  #navinfo-placeholder
  :is(.name, .user-name, .role, .user-role) {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  html
    body.app-body
    #navinfo-placeholder.page-navinfo
    :is(.management-header, .navinfo-shell, .header-content),
  html
    body.app-body
    .content-area
    #navinfo-placeholder
    :is(.management-header, .navinfo-shell, .header-content) {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  html
    body.app-body
    #navinfo-placeholder.page-navinfo
    :is(.user-profile, .navbar-right-user, .header-user, .user-area),
  html
    body.app-body
    .content-area
    #navinfo-placeholder
    :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
  }
}

/* Main-column navinfo hard containment lock. */
html body.app-body .content-area .main-column > #navinfo-placeholder,
html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder.page-navinfo {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 var(--synto-navinfo-browser-gap, clamp(18px, 2vw, 28px)) 14px 0 !important;
  overflow-x: hidden !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  > .management-header,
html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  .navinfo-shell {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  .header-content {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, max-content) !important;
  align-items: center !important;
  gap: clamp(10px, 1.2vw, 18px) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  ) {
  grid-column: 1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  .navinfo-segmented-switch {
  grid-column: 2 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  justify-self: center !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  grid-column: 3 !important;
  min-width: 0 !important;
  max-width: min(38vw, 420px) !important;
  justify-self: end !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  right: auto !important;
  transform: none !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  )
  :is(h1, h2, h3, p, span, div) {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(
    .page-description,
    .header-description,
    .project-description,
    .navinfo-description,
    p
  ) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(.user-info, .header-user-meta, .user-details) {
  min-width: 0 !important;
  max-width: 100% !important;
}

html
  body.app-body
  .content-area
  .main-column
  > #navinfo-placeholder
  :is(.name, .user-name, .role, .user-role) {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 1100px) {
  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    .header-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content) !important;
  }

  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    .navinfo-segmented-switch {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }

  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
    grid-column: 2 !important;
    max-width: min(44vw, 380px) !important;
  }
}

@media (max-width: 768px) {
  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    .header-content {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }

  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    :is(
      #dynamic-header-container,
      .header-title-group,
      .project-info,
      .page-title-group
    ),
  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    .navinfo-segmented-switch,
  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html
    body.app-body
    .content-area
    .main-column
    > #navinfo-placeholder
    :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
    justify-self: stretch !important;
    justify-content: flex-end !important;
  }
}
/* Stable shared navinfo: transparent row before the main content card. */
html body.app-body .content-area .main-column > #synto-shared-content-shell,
html body.app-body .content-area .main-column > .synto-shared-content-shell,
html body.app-body #synto-shared-content-shell:has(> #navinfo-placeholder) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.app-body .content-area:has(#synto-shared-content-shell),
html body.app-body .content-area:has(#navinfo-placeholder),
html body.app-body #defaultDashboardView:has(#synto-shared-content-shell),
html body.app-body #defaultDashboardView:has(#navinfo-placeholder),
html body.app-body .dashboard-container:has(#synto-shared-content-shell),
html body.app-body .dashboard-container:has(#navinfo-placeholder),
html body.app-body .content-row:has(#synto-shared-content-shell),
html body.app-body .content-row:has(#navinfo-placeholder),
html body.app-body .main-column:has(> #synto-shared-content-shell),
html body.app-body .main-column:has(> #navinfo-placeholder) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.app-body .content-area .main-column > #synto-shared-content-shell {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  position: static;
  transform: none;
  overflow: visible;
  box-sizing: border-box;
}

html body.app-body #navinfo-placeholder.synto-navinfo-standard,
html
  body.app-body
  .content-area
  .main-column
  > #synto-shared-content-shell
  > #navinfo-placeholder {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 var(--synto-navinfo-browser-gap, clamp(18px, 2vw, 28px)) 14px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: static;
  transform: none;
  box-sizing: border-box;
}

html body.app-body #navinfo-placeholder.synto-navinfo-standard,
html body.app-body #navinfo-placeholder.synto-navinfo-standard > *,
html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  :is(
    .management-header,
    .navinfo-shell,
    .header-content,
    .navinfo-left,
    .navinfo-center,
    .navinfo-right,
    .glass-panel,
    .header-card
  ) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  :is(.management-header, .navinfo-shell, .glass-panel, .header-card) {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html body.app-body #navinfo-placeholder.synto-navinfo-standard .header-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  min-width: 0;
  height: auto;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  ) {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

html
  body.app-body
  #navinfo-placeholder
  :is(.navinfo-left, .navinfo-center, .navinfo-right) {
  min-width: 0;
  box-sizing: border-box;
}

html body.app-body #navinfo-placeholder .navinfo-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: clamp(24px, 2.5vw, 44px) !important;
}

html body.app-body #navinfo-placeholder .navinfo-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

html body.app-body #navinfo-placeholder .navinfo-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

html body.app-body #navinfo-placeholder.synto-navinfo-standard .header-text {
  min-width: 0;
  max-width: 100%;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  .header-text
  :is(h1, h2, h3, p),
html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  :is(
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  )
  :is(h1, h2, h3, p) {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  .navinfo-segmented-switch {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  max-width: max-content;
  flex: 0 0 auto;
  align-self: center;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  .navinfo-segment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

html
  body.app-body
  #navinfo-placeholder.synto-navinfo-standard
  :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(38vw, 420px);
  margin-left: auto;
  position: static;
  right: auto;
}

@media (max-width: 900px) {
  html
    body.app-body
    #navinfo-placeholder.synto-navinfo-standard
    .header-content {
    flex-wrap: wrap;
  }

  html
    body.app-body
    #navinfo-placeholder.synto-navinfo-standard
    :is(
      #dynamic-header-container,
      .header-title-group,
      .project-info,
      .page-title-group
    ) {
    flex-basis: min(100%, 520px);
  }
}

@media (max-width: 640px) {
  html body.app-body #navinfo-placeholder.synto-navinfo-standard {
    padding-right: 0;
  }

  html
    body.app-body
    #navinfo-placeholder.synto-navinfo-standard
    .header-content {
    align-items: flex-start;
  }

  html
    body.app-body
    #navinfo-placeholder.synto-navinfo-standard
    .navinfo-segmented-switch,
  html
    body.app-body
    #navinfo-placeholder.synto-navinfo-standard
    :is(.user-profile, .navbar-right-user, .header-user, .user-area) {
    max-width: 100%;
    margin-left: 0;
  }
}

/* ======================================================================
   GLOBAL NAVINFO STANDARD (Source of Truth: /admin/dashboard.php)
   ====================================================================== */
html body #navinfo-placeholder,
html body #navinfo-placeholder.page-navinfo,
html body #navinfo-placeholder.synto-navinfo-standard {
  width: var(--synto-navinfo-width, 100%) !important;
  max-width: var(--synto-navinfo-max-width, none) !important;
  min-width: var(--synto-navinfo-min-width, 0) !important;
  height: var(--synto-navinfo-height, auto) !important;
  min-height: var(--synto-navinfo-min-height, 0) !important;
  box-sizing: border-box !important;
}

html
  body
  #navinfo-placeholder
  :is(.management-header, .navinfo-shell, .glass-panel, .header-card) {
  width: var(--synto-navinfo-width, 100%) !important;
  max-width: var(--synto-navinfo-max-width, none) !important;
  min-width: var(--synto-navinfo-min-width, 0) !important;
  height: var(--synto-navinfo-height, auto) !important;
  min-height: var(--synto-navinfo-min-height, 0) !important;
}

html
  body
  #navinfo-placeholder
  :is(
    .navinfo-left,
    #dynamic-header-container,
    .header-title-group,
    .project-info,
    .page-title-group
  ) {
  margin-left: clamp(24px, 2.5vw, 44px) !important;
}

/* ======================================================================
   RED-AREA DISPLAY BOUNDARY — CLIP ONLY
   Keep existing KPI-common / Revenue layout and geometry unchanged.
   Only prevent their rendered pixels from extending beyond the target
   right boundary. No re-layout, resize, scale, or position changes.
   ====================================================================== */
@media (min-width: 768px) {
  html body.company-dashboard-page .content-area > #kpi-component-placeholder,
  html body .content-area > #kpi-component-placeholder,
  html body.company-dashboard-page .content-area > #kpi-grid-container,
  html body .content-area > #kpi-grid-container,
  html body.company-dashboard-page .content-area > .stats-grid,
  html body .content-area > .stats-grid,
  html body.company-dashboard-page .content-area > .owner-kpi-grid,
  html body .content-area > .owner-kpi-grid,
  html body.company-dashboard-page .content-area > .section-kpis,
  html body .content-area > .section-kpis,
  html body.company-dashboard-page .content-area > .realtime-ticker-card,
  html body .content-area > .realtime-ticker-card {
    clip-path: inset(0 72px 0 0);
  }
}
